package com.lagou.homework.stage01.module02.Task3;

public class Card {

    private String type;
    private int id;
    private String userName;
    private String password;
    private double money;
    private int min;
    private int flow;

    public Card() {
    }

    public Card(String type, int id, String userName, String password, double money, int min, int flow) {
        setType(type);
        setId(id);
        setUserName(userName);
        setPassword(password);
        setMoney(money);
        setMin(min);
        setFlow(flow);
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public int getMin() {
        return min;
    }

    public void setMin(int min) {
        this.min = min;
    }

    public int getFlow() {
        return flow;
    }

    public void setFlow(int flow) {
        this.flow = flow;
    }

    public void show(){
        System.out.println("卡号："+getId());
        System.out.println("用户名："+getUserName());
        System.out.println("当前余额："+getMoney());
    }
}
